package cn.com.clearcloud.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "store-server",fallback = StoreFallBack.class)
public interface StoreClient {



//    @PostMapping(value = "/store/deduct/{commodityCode}/{count}")
//    public Integer deduct();

    @PostMapping(value = "/store/deduct/{commodityCode}/{count}")
    public Integer deduct(@PathVariable("commodityCode") String commodityCode,
                          @PathVariable("count") Integer count);
}
